#ifndef ActivityTimer_h
#define ActivityTimer_h

#include <e32base.h>
#include "ActivityNotifier.h"

class CActivityTimer: public CTimer
{
public:
	static CActivityTimer* NewL(MActivityNotifier& aNotifier);
	~CActivityTimer();
	void WaitInactivity(TInt aSeconds);
private:
	CActivityTimer(MActivityNotifier& aNotifier);
	void ConstructL();
protected:
	virtual void RunL();
protected:
	MActivityNotifier& iNotifier;
	TInt iSeconds;
};

#endif
